<?php

namespace Luka\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Luka\StoreBundle\Entity\Company
 *
 * @ORM\Table(name="Company")
 * @ORM\Entity
 */
class Company
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string $name
     *
     * @ORM\Column(name="name", type="string", length=100, nullable=false)
     */
    private $name;

    /**
     * @var string $registrycode
     *
     * @ORM\Column(name="registrycode", type="string", length=50, nullable=false)
     */
    private $registrycode;

    /**
     * @var Party
     *
     * @ORM\ManyToOne(targetEntity="Party")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="party_id", referencedColumnName="id")
     * })
     */
    private $party;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set registrycode
     *
     * @param string $registrycode
     */
    public function setRegistrycode($registrycode)
    {
        $this->registrycode = $registrycode;
    }

    /**
     * Get registrycode
     *
     * @return string 
     */
    public function getRegistrycode()
    {
        return $this->registrycode;
    }

    /**
     * Set party
     *
     * @param Luka\StoreBundle\Entity\Party $party
     */
    public function setParty(\Luka\StoreBundle\Entity\Party $party)
    {
        $this->party = $party;
    }

    /**
     * Get party
     *
     * @return Luka\StoreBundle\Entity\Party 
     */
    public function getParty()
    {
        return $this->party;
    }
}